package com.linzt.candy.wxmp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linzt.candy.wxmp.domain.WxMpMenu;
import com.linzt.candy.wxmp.mapper.WxMpMenuMapper;
import com.linzt.candy.wxmp.service.IWxMpMenuService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author linzt
 * @Date 2020/12/218:23 上午
 * @Description 微信公众号菜单服务实现类
 * @Version 1.0
 */
@Service
public class WxMpMenuServiceImpl extends ServiceImpl<WxMpMenuMapper, WxMpMenu> implements IWxMpMenuService {

    private static final Logger logger= LoggerFactory.getLogger(WxMpUserServiceImpl.class);
    @Resource
    private WxMpMenuMapper wxMpMenuMapper;

    @Override
    public List<WxMpMenu> findByAppIdAndPid(String appid, String pid) {
        return wxMpMenuMapper.findByAppIdAndPid(appid,pid);
    }

    @Override
    public void deleteByAppId(String appId) {
        wxMpMenuMapper.deleteByAppId(appId);
    }

    @Override
    public void sync(String appId) {

    }
}
